<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
        }
        html,body{
            height: 100vh;
            display: grid;
            place-items: center;
            font-family:cursive ;
            background-color: #f3f8fe;
        }
        .box{
            height: max-content;
            width:max-content ;
            background-color: #fdfdfd;
            border-radius: 30px;
            padding: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: rgba(100,100,111,0.2)0px 7px 29px 0px;
        }
        .box_header{
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 25px;
            font-weight: 600;
            color:#151426 ;
            padding: 10px;
        }
        .box_body{
            padding: 10px;
        }
        .box_week{
            display: grid;
            grid-template-columns: repeat(7,1fr);
            font-weight: 600;
            height: 50px;
        }
        .box_week div{
            display: grid;
            place-items: center;
            color: #c3c2c8;
        }
        .box_days{
            display: grid;
            grid-template-columns: repeat(7,1fr);
            gap: 2px;
            color: #151426;
        }
        .box_days div{
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5px;
            position: relative;
            cursor: pointer;
            animation: a 1s forwards;
        }
        .box_days div span{
            position: absolute;
        }
        .box_days div:hover span{
            transition: width 0.2s ease-in-out,height 0.2s ease-in-out;
        }
        .box_days div span:nth-child(1),
        .box_days div span:nth-child(3){
            width: 2px;
            height: 0;
            background-color: #151426;
        }
        .box_days div:hover span:nth-child(1),
        .box_days div:hover span:nth-child(3){
            height: 100%;
        }
        .box_days div span:nth-child(1){
            bottom: 0;
            left: 0;
        }
        .box_days div span:nth-child(3){
            top: 0;
            right: 0;
        }



        .box_days div span:nth-child(2),
        .box_days div span:nth-child(4){
            width: 0;
            height: 2px;
            background-color: #151426;
        }
        .box_days div:hover span:nth-child(2),
        .box_days div:hover span:nth-child(4){
            width: 100%;
        }
        .box_days div span:nth-child(2){
            top: 0;
            left: 0;
        }
        .box_days div span:nth-child(4){
            bottom: 0;
            right: 0;
        }
        .box_days div:hover span:nth-child(2){
            transition-delay: 0.2s;
        }
        .box_days div:hover span:nth-child(3){
            transition-delay: 0.4s;
        }
        .box_days div:hover span:nth-child(4){
            transition-delay: 0.6s;
        }

        .box_days div.curr_date{
            background-color: blue;
            color: white;
            border-radius: 50%;
        }
        .box_days div.curr_date span{
            display: none;
        }

        .month_picker{
            padding: 5px 10px;
            border-radius: 10px;
            cursor: pointer;
        }
        .month_picker:hover{
            background-color:#edf0f5 ;
        }
        .year_header{
            display: flex;
            align-items: center;
        }
        .changeyear{
            height: 40px;
            width: 40px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            margin: 0 10px;
            cursor: pointer;
            user-select: none;
        }
        .changeyear:hover{
            background-color: #edf0f5;
        }
        #year{
            user-select: none;
        }
        .month_list{
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-color: #fdfdfd;
            padding: 20px;
            color: #c3c2c8;
            display: grid;
            grid-template-columns: repeat(3,auto);
            gap: 5px;
            transform: scale(1.5);
            visibility: hidden;
            pointer-events: none;
        }
        .month_list.show{
            transform: scale(1);
            visibility: visible;
            pointer-events: visible;
            transition: all .2s ease-in-out;
        }
        .month_list > div{
            display: grid;
            place-items: center;
        }
        .month_list > div > div{
            width: 100%;
            padding: 5px 20px;
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
        }
        .month_list > div > div:hover{
            background-color: #edf0f5;
        }
        @keyframes a{
            0%{
                transform: translateY(100%);
            }
            100%{
                transform: translateY(0);
                opacity: 1;
            }
        }
    </style>
</head>
<body>
    <div class="box">

        <div class="box_header">
            <div class="month_picker" id="month_picker">
                
            </div>

            <div class="year_header">
                <div class="changeyear last"><</div>
                <div id="year"></div>
                <div class="changeyear next">></div>
            </div>
        </div>

        <div class="box_body">
            <div class="box_week">
                <div>星期天</div>
                <div>星期一</div>
                <div>星期二</div>
                <div>星期三</div>
                <div>星期四</div>
                <div>星期五</div>
                <div>星期六</div>
            </div>

            <div class="box_days">
                
            </div>
        </div>
        <div class="month_list"></div>
    </div>

    <script src="./index.js"></script>
</body>
</html>